ChangeViewType
TheChangeViewType
method changes the specified view type of this frame.
void ChangeViewType (in ODTypeToken viewType);
viewType
- A tokenized string representing the view type to assign to this frame.
DISCUSSION
TheviewType
parameter must be the tokenized form of one of the view-type constants (kODViewAsFrame
,kODViewAsSmallIcon
,kODViewAsLargeIcon
, orkODViewAsThumbnail
). You can call the session object'sTokenize
method to obtain a token corresponding to one of these constants.Your part calls its embedded frame's
ChangeViewType
method to request that it use a new view type. This method in turn calls theViewTypeChanged
method of this frame's part to notify the part that its view type has changed. If the embedded part does not support the requested view type, it can pick a view type that it can support and then call its frame'sSetViewType
method to update the view type in the frame.EXCEPTIONS
kODErrIllegalNullTokenInput
- The
viewType
parameter is null.SEE ALSO
TheODTypeToken
type (page 877).
TheODFrame::GetViewType
method (page 324).
TheODFrame::SetViewType
method (page 339).
TheODPart::ViewTypeChanged
method (page 551).
TheODSession::Tokenize
method (page 622).
Listing 2-20 on page 72 in OpenDoc Cookbook.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help